//
//  EclipsedView.m
//  FunnyOfTheDay
//
//  Created by Santa  Clause on 4/18/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "EclipsedView.h"


@implementation EclipsedView

- (void)drawRect:(CGRect)rect {
	
    CGContextRef context = UIGraphicsGetCurrentContext();
    CGContextBeginPath(context);
	CGContextSetLineWidth(context, strokeWidth);
    CGContextSetStrokeColorWithColor(context, self.strokeColor.CGColor);
    CGContextSetFillColorWithColor(context, self.backColor.CGColor);
    
	CGContextFillEllipseInRect(context, rect);
    
	CGContextClosePath(context);
    CGContextDrawPath(context, kCGPathFillStroke);
}


- (void)dealloc {
    [super dealloc];
}


@end
